<style>
#rokovnikEditCall{
	width:350px;
}
#rokovnikEditCall textarea{
	width:180px;
	height:75px;
}
#rokovnikEditCall fieldset label{
	width:70px;
}
#rokovnikEditCall label{
	clear:both;
	float:left;
	padding-top:8px;
	width:80px;
	display:block;
	text-align:right;
}
#rokovnikEditCall label.inline{
	clear:none;
}
#rokovnikEditCall fieldset{
	border:1px solid #aaa;
}
#rokovnikEditCall legend{
	color:#aaa;
}
#rokovnikEditCall input[type=button].searchBtn{
	width:16px;
	height:16px;
	background:url(gui/icons/search.gif) no-repeat center center;
	border:none;
	cursor:pointer;
}
#rokovnikEditCall input[type=text]:disabled{
	background:#fff;
	color:#000;
	border:1px solid #7F9DB9;
	cursor:default;
}
#rokovnikEditCall select.yesno{
	width:50px;
}
#rokovnikEditCall input[type=submit].save{
	padding-left:18px;
	background-image:url(gui/icons/save.gif);
	background-repeat:no-repeat;
	background-position:3px center;
	float:right;
}
</style>
<form class="area" method="post" action="javascript:void(0)" onsubmit="saveRokovnikEditCall(this)" id="rokovnikEditCall">
	<h2>{{$call_time}}</h2>
	<input type="hidden" name="call_id" value="{{$call_id}}" />
	<!-- komitent -->
	<label for="komitent">Komitent:</label>
	<input type="text" disabled="disabled" name="komitent" id="komitent" value="{{$komitent_name}}" />
	<input type="hidden" name="komitent_id" id="komitent_id" value="{{$komitent_id}}" />
	<input type="button" onclick="searchKomitentRokovnik(this,null,1)" title="Nađi komitenta..." value="" class="searchBtn" />
	<br clear="all" />
	<!-- POREKLO -->
	<label for="poreklo">Poreklo:</label>
	<select name="poreklo" id="poreklo">
		{{%loop start poreklo_id}}
		<option value="{{$poreklo_id}}" {{$poreklo_selected}}>{{$poreklo_name}}</option>
		{{%loop end}}
	</select><br clear="all" />
	<!-- KONTAKT -->
	<label for="kontakt">Kontakt:</label>
	<select name="obavljen" id="obavljen" class="yesno" onchange="filterObavljenKontakt(this)">
		<option value="-1">---</option>
		<option value="1">obavljen</option>
		<option value="0">neobavljen</option>
	</select>
	<select name="kontakt" id="kontakt" class="second">
		{{%loop start kontakt_id}}
		<option value="{{$kontakt_id}}" obavljen="{{$kontakt_obavljen}}" {{$kontakt_selected}}>{{$kontakt_name}}</option>
		{{%loop end}}
	</select><br clear="all" />
	<!-- ODGOVOR -->
	<label for="odgovor">Odgovor:</label>
	<select name="ovlascen" class="yesno" onchange="filterOvlascenOdgovor(this)">
		<option value="-1">---</option>
		<option value="1">ovlašćen</option>
		<option value="0">neovlašćen</option>
	</select>
	<select name="odgovor" id="odgovor" style="width:185px;" class="second">
		{{%loop start odgovor_id}}
		<option value="{{$odgovor_id}}" ovlascen="{{$odgovor_ovlascen}}" {{$odgovor_selected}}>{{$odgovor_name}}</option>
		{{%loop end}}
	</select>
	<!-- SPEC.DOGADJAJ -->
	<label for="spec_dogadjaj">Specifičan: događaj&nbsp;</label>
	<textarea name="spec_dogadjaj" id="spec_dogadjaj">{{$spec_dogadjaj}}</textarea><br clear="all" />
	<!-- NAPOMENA -->
	<label for="napomena">Napomena:</label>
	<textarea name="napomena" id="napomena">{{$napomena}}</textarea><br clear="all" />
	<!-- RESULT -->
	<fieldset>
	  <legend>Zaključak:</legend>
	  	<label for="result">Ishod:</label>
		<input type="hidden" name="result_id" id="result_id" value="{{$result_id}}" />
	  	<select name="result" id="result">
	  		{{%loop start result_type_id}}
			<option value="{{$result_type_id}}" {{$result_type_selected}}>{{$result_type_name}}</option>
			{{%loop end}}
	  	</select><br clear="all" />
		<label for="result_date">Datum:</label>
		<input type="text" name="result_date" id="result_date" maxlength="10" style="width:60px;" value="{{$result_date}}" />
		<input type="button" class="datePicker" onclick="displayDatePicker('result_date',this)" title="Odaberi datum" />
		
		<label for="result_hour" style="width:25px;" class="inline">Sat:</label>
		<input type="text" maxlength="2" name="result_hour" id="result_hour" style="width:16px;" maxval="23" minval="0" value="{{$result_hour}}" onchange="fixNumStepVal(this);" />
		<img src="gui/numstep.gif" border="0" usemap="#Map1" class="numstep" />
		<label for="result_minute" style="width:auto;" class="inline">Min:</label>
		<input type="text" maxlength="2" name="result_minute" id="result_minute" style="width:16px;" maxval="59" minval="0" value="{{$result_minute}}" onchange="fixNumStepVal(this)" />
		<img src="gui/numstep.gif" border="0" usemap="#Map2" class="numstep" />
		<map name="Map1" id="Map1">
			<area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('result_hour')" />
			<area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('result_hour')" />
		</map>
		<map name="Map2" id="Map2">
			<area shape="rect" coords="0,0,7,5" href="javascript:void(0)" onclick="incrementNumStep('result_minute')" />
			<area shape="rect" coords="0,5,7,10" href="javascript:void(0)" onclick="decrementNumStep('result_minute')" />
		</map><br clear="all" />
		<label for="result_desc">Opis:</label>
		<textarea name="result_desc" id="result_desc">{{$result_desc}}</textarea>
	</fieldset>
	<input type="submit" value="sačuvaj" class="save" />
</form>